<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <meta name="copyright" content="www.apicloud.com" />
    <meta
      name="viewport"
      content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"
    />
    <meta
      name="format-detection"
      content="telephone=no,email=no,date=no,address=no"
    />
    <title>巡查台账</title>
    <link rel="stylesheet" type="text/css" href="../../css/api.css" />
    <style>
      #main {
        display: -webkit-box;
        display: -webkit-flex;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-flex-flow: column;
        flex-flow: column;
      }
      #header {
        position: relative;
        background-color: #1abc9c;
        border-bottom: 1px solid #e0e0e0;
      }
      .logo {
        position: absolute;
        left: 20px;
        bottom: 13px;
        height: 25px;
      }
      h1 {
        height: 50px;
        line-height: 50px;
        font-size: 20px;
        color: #fff;
        font-weight: normal;
        margin: 0 auto;
        text-align: center;
      }
    </style>
  </head>
  <body>
    <div id="main">
      <header id="header">
        <img
          class="logo"
          src="../../image/ic_back_u.png"
          tapmode
          onclick="api.closeWin()"
        />
        <h1 id="title">巡查台账</h1>
      </header>
    </div>
  </body>
  <script type="text/javascript" src="../../script/api.js"></script>
  <script type="text/javascript">
    apiready = function () {
      var $header = $api.dom("header");
      var params = api.pageParam.id;
      $api.fixIos7Bar($header);
      $api.fixStatusBar($header);
      var thridHeader = $api.offset(header);
      api.openFrame({
        name: "viewPatrol_frame",
        url: "viewPatrol_frame.html",
        rect: {
          x: 0,
          y: thridHeader.h,
          w: "auto",
          h: "auto",
        },
        bounces: true,
        delay: 200,
        pageParam: {
          typeId: params,
        },
      });
    };
  </script>
</html>
